import { createStore, combineReducers } from 'redux'
import listReducer from './list'

const reducer = combineReducers({
	// 合并reducr
	list: listReducer
})

const store = createStore(reducer)
// 获取仓库类型
export type RootState = ReturnType<typeof store.getState>
export default store